package com.xqboss.apps.dto.market;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xqboss.apps.dto.PageDto;
import com.xqboss.apps.enums.market.MarketTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *     市场列表(扩展)参数
 * </p>
 * @author Trent
 * @date 2023/8/24
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
public class MarketExtendDto extends PageDto {

    @ApiModelProperty("源id(包括典藏，装备，箱子)")
    @NotNull(message = "请输市场ID")
    private Long id;

    @ApiModelProperty(value = "市场类型",required = true)
    @NotNull(message = "请输入市场类型")
    private MarketTypeEnum type;

    @ApiModelProperty(value = "0交易中，1转卖中")
    private Integer status;

    @ApiModelProperty(value = "是否是全新装备", hidden = true)
    @JsonIgnore
    private Boolean isNew;

    @ApiModelProperty("等级筛选最高值")
    private Integer maxLevel;

    @ApiModelProperty("等级筛选最低值")
    private Integer minLevel;
}
